<?php
//header("Content-Type: text/html; charset=ISO-8859-1", true); 
include"conecta.php";

//$res = mysql_query("(select * from casas_t_s) UNION (SELECT * FROM apartamentos_sc)");
$res = mysql_query("(select * from casas_t_s)");

//if(mysql_num_rows($res)>0) {



if ($res){	
	while($escrever=mysql_fetch_array($res)){

	echo "
	  <tr>
	    <td width=\"70\" ><p>".$escrever['id']. "</p></td  
	  >";
	 echo" <td width=\"70\" ><p>".$escrever['responsavel']. "</p></td  
	  >
	  ";
	echo" <td width=\"70\" ><p>".$escrever['tipo']. "</p></td  
	  >
	  ";

	echo" <td width=\"70\" ><p>".$escrever['preco']. "</p></td  
	  >
	  </tr>";
	  
	}

}

$res = mysql_query("(select * from apartamentos_sc)");

//if(mysql_num_rows($res)>0) {



if ($res){	
	while($escrever=mysql_fetch_array($res)){

	echo "
	  <tr>
	    <td width=\"70\" ><p>".$escrever['id']. "</p></td  
	  >";
	 echo" <td width=\"70\" ><p>".$escrever['responsavel']. "</p></td  
	  >
	  ";
	echo" <td width=\"70\" ><p>".$escrever['tipo']. "</p></td  
	  >
	  ";

	echo" <td width=\"70\" ><p>".$escrever['preco']. "</p></td  
	  >
	  </tr>";
	  
	}

}

//}

echo "

</table>";
?>

